package com.wuming.caiwu.service;


import com.wuming.caiwu.core.BusinessException;
import com.wuming.caiwu.model.QsgStore;

import java.util.List;

/**
 * 店铺服务
 * Created by hanfei on 16/4/19.
 */
public interface QsgStoreService {

    /**
     * 更新店铺
     *
     * @param member 店铺
     * @throws BusinessException
     */
    void modifyQsgStore(QsgStore member) throws BusinessException;


    /**
     * 根据id查询店铺
     *
     * @param id 店铺id
     * @return 店铺
     * @throws BusinessException
     */
    QsgStore getQsgStoreById(Integer id) throws BusinessException;

    /**
     * 根据id删除店铺
     *
     * @param id 店铺id
     * @throws BusinessException
     */
    void removeQsgStoreById(Integer id) throws BusinessException;


    /**
     * 分页查询店铺列表
     *
     * @param storeName 店铺名
     * @param pageIndex 当前页
     * @param pageSize  每页数量
     * @return 店铺列表
     * @throws BusinessException
     */
    List<QsgStore> getQsgStoresByPage(String storeName,int pageIndex, int pageSize) throws BusinessException;

    /**
     * 查询总的店铺数
     *
     * @param storeName 店铺名
     * @return 用户总数
     * @throws BusinessException
     */
    int getTotal(String storeName) throws BusinessException;


    List<QsgStore> getAll() throws BusinessException;

}
